using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._GeodatabaseAdministration
{
    /// <summary>
    /// <para>Diagnose Version Metadata</para>
    /// <para>Identifies inconsistencies in the system tables used to manage traditional versions and states in a geodatabase.</para>
    /// <para>识别用于管理地理数据库中传统版本和状态的系统表中的不一致之处。</para>
    /// </summary>    
    [DisplayName("Diagnose Version Metadata")]
    public class DiagnoseVersionMetadata : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public DiagnoseVersionMetadata()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_input_database">
        /// <para>Input Database Connection</para>
        /// <para><xdoc>
        ///   <para>The database connection (.sde file) to the enterprise geodatabase in which traditional versioning system table inconsistencies may exist.</para>
        ///   <para>The connection must be made as the geodatabase administrator.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>与企业级地理数据库的数据库连接（.sde 文件），其中可能存在传统版本化系统表不一致的情况。</para>
        ///   <para>必须以地理数据库管理员身份建立连接。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_out_log">
        /// <para>Diagnostic Version Metadata Log</para>
        /// <para><xdoc>
        ///   <para>The name and location of the output log file.</para>
        ///   <para>The log file is an ASCII file containing a list of the system tables in the specified version that contain inconsistent records, as well as the database connection file used.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出日志文件的名称和位置。</para>
        ///   <para>日志文件是一个 ASCII 文件，其中包含指定版本中包含不一致记录的系统表的列表，以及使用的数据库连接文件。</para>
        /// </xdoc></para>
        /// </param>
        public DiagnoseVersionMetadata(object _input_database, object _out_log)
        {
            this._input_database = _input_database;
            this._out_log = _out_log;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Diagnose Version Metadata";

        public override string CallName => "management.DiagnoseVersionMetadata";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_input_database, _out_log, _out_workspace];

        /// <summary>
        /// <para>Input Database Connection</para>
        /// <para><xdoc>
        ///   <para>The database connection (.sde file) to the enterprise geodatabase in which traditional versioning system table inconsistencies may exist.</para>
        ///   <para>The connection must be made as the geodatabase administrator.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>与企业级地理数据库的数据库连接（.sde 文件），其中可能存在传统版本化系统表不一致的情况。</para>
        ///   <para>必须以地理数据库管理员身份建立连接。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Database Connection")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _input_database { get; set; }


        /// <summary>
        /// <para>Diagnostic Version Metadata Log</para>
        /// <para><xdoc>
        ///   <para>The name and location of the output log file.</para>
        ///   <para>The log file is an ASCII file containing a list of the system tables in the specified version that contain inconsistent records, as well as the database connection file used.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出日志文件的名称和位置。</para>
        ///   <para>日志文件是一个 ASCII 文件，其中包含指定版本中包含不一致记录的系统表的列表，以及使用的数据库连接文件。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Diagnostic Version Metadata Log")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_log { get; set; }


        /// <summary>
        /// <para>Updated Input Workspace</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Workspace")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_workspace { get; set; }


        public DiagnoseVersionMetadata SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}